package com.loong.backend.gateway.handler;




import com.loong.global.constant.RedisKey;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Component
public class TokenHandler {



    /**
     * 设置Token和AdminUser的缓存时间
     *
     * @param second
     * @param token
     */
    public void setTokenAndAdminUserInfoTTL(int second, String token) {

    }

    /**
     * 验证Token是否有效
     *
     * @param token
     * @return
     */
    public boolean validationToken(final String token,Integer headerUserId, final String requestURI) {

        return validationTokenAccess(1L, requestURI);
    }

    private boolean validationTokenAccess(final Long userId, final String requestURI) {
        return true;
    }
}
